<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<HTML >
<HEAD>
    <TITLE>租房 - 用户管理</TITLE>
    <META content="text/html; charset=utf-8" http-equiv=Content-Type>
    <LINK  rel=stylesheet type=text/css href="${pageContext.request.contextPath}/css/style.css">
    <META name=GENERATOR >
</HEAD>
<script>
    function del(id,nickName) {
        var ok = window.confirm("确认是否删除?");
        if (ok) {
            document.location.href = "${pageContext.request.contextPath}/page/delById.do?id=" + id +"&nickName=" + nickName;
        }
    };
</script>
<BODY>
<DIV id=header class=wrap>
    <DIV id=logo><IMG src="${pageContext.request.contextPath}/images/logo.gif"></DIV>
    <DIV class=search>
        <LABEL class="ui-green searchs"><a href="${pageContext.request.contextPath}/page/fabu.jsp" title="">发布房屋信息</a></LABEL>
        <LABEL class=ui-green><INPUT onclick='document.location="${pageContext.request.contextPath}/index.jsp"' value="退       出" type=button name=search></LABEL>
        <LABEL class=ui-green><INPUT onclick='document.location="${pageContext.request.contextPath}/page/list.jsp"' value="返回主列表" type=button name=search></LABEL>
    </DIV></DIV>
<DIV class="main wrap">
    <DIV id=houseArea>
        <TABLE class=house-list>
            <TBODY>
                <c:forEach items="${list}" var="rent">
                    <TR>
                        <TD class=house-thumb><SPAN><A href="${pageContext.request.contextPath}/page/detail.do?id=${rent.id}"><img src="${pageContext.request.contextPath}/images/thumb_house.gif" width="100" height="75" alt=""></A></SPAN></TD>
                        <TD>
                            <DL>
                                <DT><A href="${pageContext.request.contextPath}/page/detail.do?id=${rent.id}">${rent.title}</A></DT>
                                <DD>${rent.district.districtName}${rent.street.streetName},${rent.area}平米<BR>联系方式：${rent.contact} </DD>
                            </DL>
                        </TD>
                        <TD class=house-type>
                            <LABEL class=ui-green>
                                <INPUT onclick='document.location="${pageContext.request.contextPath}/page/editById.do?id=${rent.id}"' value="修    改" type=button name=search>
                            </LABEL>
                        </TD>
                        <TD class=house-price>
                            <LABEL class=ui-green>
                                <INPUT id="del" onclick="del(${rent.id},${rent.nickName})" value="删    除" type=button name=search>
                            </LABEL>
                        </TD>
                    </TR>
                </c:forEach>
            </TBODY>
        </TABLE>
    </DIV>
    <DIV class=pager>
        <UL>
            <LI class=current><A id=widget_338868862
                                 href="http://localhost:8080/HouseRent/manage!ajaxList.action?number=1"
                                 parseContent="true" showError="true" targets="houseArea"
                                 ajaxAfterValidation="false" validate="false"
                                 dojoType="struts:BindAnchor">1</A>
            </LI>
            <LI class=current><A id=widget_1160989910
                                 href="http://localhost:8080/HouseRent/manage!ajaxList.action?number=2"
                                 parseContent="true" showError="true" targets="houseArea"
                                 ajaxAfterValidation="false" validate="false"
                                 dojoType="struts:BindAnchor">2</A>
            </LI></UL><SPAN class=total>1/2页</SPAN> </DIV></DIV>
<DIV id=footer class=wrap>
    <DL>
        <DT>租房 © 2010  京ICP证1000001号</DT>
        <DD>关于我们 · 联系方式 · 意见反馈 · 帮助中心</DD>
    </DL>
</DIV>
</BODY>
</HTML>
